package org.example.adapter.interfaceadapter;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.web.servlet.DispatcherServlet;

/**
 * @author
 * @description
 */
@SpringBootTest
public class Client {

    @Test
    void test(){
        AbsAdapter absAdapter = new AbsAdapter() {
            @Override
            public void m1() {
                System.out.println("使用接口m1的方法");
            }
        };
        absAdapter.m1();
    }

    @Test
    void test2(){
        DispatcherServlet dispatcherServlet = new DispatcherServlet();
    }
}
